// 动态路由
import LayOut from "@/layOut"

const dynamicRoutes = [
    // {
    //     path: "",
    //     component: LayOut,
    //     active: false,
    //     meta: { title: "系统", icon: "icon-system", fatherPath: "/system" },
    //     children: [
    //         {
    //             path: "/system",
    //             name: "System",
    //             meta: { title: "系统", icon: "icon-system", fatherPath: "/system", noCache: true },
    //             component: () => import("@/views/system.vue")
    //         }
    //     ]
    // },
    {
        path: "",
        component: LayOut,
        active: false,
        meta: { title: "档案", icon: "icon-board", fatherPath: "/archives" },
        children: [
            {
                path: "/archives",
                name: "Archives",
                meta: { title: "档案", icon: "icon-board", fatherPath: "/archives", noCache: true },
                component: () => import("@/views/archives.vue")
            }
        ]
    }, {
        path: "",
        component: LayOut,
        active: false,
        meta: { title: "订单", icon: "icon-board", fatherPath: "/order" },
        children: [
            {
                path: "/order",
                name: "Order",
                meta: { title: "订单", icon: "icon-board", fatherPath: "/order", noCache: true },
                component: () => import("@/views/order.vue")
            }
        ]
    }, {
        path: "",
        component: LayOut,
        active: false,
        meta: { title: "库存", icon: "icon-board", fatherPath: "/stock" },
        children: [
            {
                path: "/stock",
                name: "Stock",
                meta: { title: "库存", icon: "icon-board", fatherPath: "/stock", noCache: true },
                component: () => import("@/views/stock.vue")
            }
        ]
    }, {
        path: "",
        component: LayOut,
        active: false,
        meta: { title: "地图", icon: "icon-board", fatherPath: "/map" },
        children: [
            {
                path: "/map",
                name: "Map",
                meta: { title: "地图", icon: "icon-board", fatherPath: "/map", noCache: true },
                component: () => import("@/views/map.vue")
            }
        ]
    }, {
        path: "",
        component: LayOut,
        active: false,
        meta: { title: "大屏", icon: "icon-board", fatherPath: "/bigMoniter" },
        children: [
            {
                path: "/bigMoniter",
                name: "BigMoniter",
                meta: { title: "档案", icon: "icon-board", fatherPath: "/bigMoniter", noCache: true },
                component: () => import("@/views/bigMoniter.vue")
            }
        ]
    }, {
        path: "",
        component: LayOut,
        active: false,
        meta: { title: "开通", icon: "icon-board", fatherPath: "/open" },
        children: [
            {
                path: "/open",
                name: "Open",
                meta: { title: "开通", icon: "icon-board", fatherPath: "/open", noCache: true },
                component: () => import("@/views/open.vue")
            }
        ]
    }, {
        path: "",
        component: LayOut,
        active: false,
        meta: { title: "客服", icon: "icon-board", fatherPath: "/customerService" },
        children: [
            {
                path: "/customerService",
                name: "CustomerService",
                meta: { title: "客服", icon: "icon-board", fatherPath: "/customerService", noCache: true },
                component: () => import("@/views/customerService.vue")
            }
        ]
    }
]

export default dynamicRoutes
